<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <link rel="stylesheet" type="text/css" href="__CSS__/lib/normalize.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/mui-3.6.1.min.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/new_store.css" />
    <link rel="stylesheet" href="__CSS__/my_pullrefresh.css" type="text/css">
    <link rel="stylesheet" href="__CSS__/swiper-3.4.2.min.css">
    <title>新店来袭</title>
</head>

<body>
    <div class="mui-content">
        <div class="top-bar mui-row">
            <div class="return mui-col-sm-2 mui-col-xs-2" onclick="location.href='/Wx/Index'"></div>
            <div class="top-middle mui-col-sm-8 mui-col-xs-8">
                <div class="s-top-middle">
                    新店来袭
                </div>
            </div>
            <div class="top-right mui-col-sm-2 mui-col-xs-2"></div>
        </div>
    </div>



    <!-- 商品 -->
    <div id="slider" class="mui-slider mui-fullscreen" style="">
        <div class="mui-slider-group">
            <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
                <div class="mui-scroll-wrapper">
                    <div class="mui-scroll">
                        <ul class="mui-table-view">
                            <div class="swiper-container">
                                <div class="swiper-wrapper">
                                  <foreach name="adInfo" item="vo">
                                    <div class="swiper-slide"><a href="{$vo.adurl}"><img src="/{$vo.adfile}" width="100%" height="100%"></a></div>
                                  </foreach>
                                </div>
                            </div>

                            <foreach name="shop" item="v">
                            <li class="mui-table-view-cell" ontouchstart="fdd(this,{$v[shopId]})">
                                <div class="mui-content-2">
                                      <div class="gg  mui-col-xs-3" onclick="location.href='/Wx/Shop/shop/id/{$v[shopId]}'">
                                          <div class="ufo-1" style="background-image:url('{$v['shopImg']}')">
                                            <img src="__ROOT__/{$v['shopImg']}" width="80" height="80" alt="">
                                          </div>
                                      </div>
                                      <div class="gg mui-col-sm-6 mui-col-xs-6">
                                           <div class="yzg">{$v['shopName']}</div>
                                           <div class="star" >
                                              <span class="setStart" data-score="{$v['score']}">
                                              </span><span>{$v['score']}</span>月售{$v['yue_xiaoliang']}份
                                           </div>
                                           <div class="y-time">预计送达时间: <span>{$v['deliveryCostTime']}</span>分钟 / <span>{$v['juli2']}</span></div>
                                           <div class="b-you">
                                               <img src="__IMG__/icon_baoyou@2x.png"/>满{$v['deliveryFreeMoney']}包邮
                                           </div>
                                      </div>
                                      <div class="gg mui-col-sm-2 mui-col-xs-2">
                                          <p class="qsf"><span class="q-sf">{$v['deliveryStartMoney']}</span>元起送</p>
                                          <p class="psf"><span>{$v['deliveryMoney']}</span>元配送费</p>
                                      </div>
                                </div>
                            </li>
                          </foreach>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript" src="__JS__/jquery2.1.1.min.js"></script>
    <script src="__JS__/swiper.min.js"></script>
    <script type="text/javascript" src="__JS__/mui.js"></script>
    <script src="__JS__/mui.pullToRefresh.js"></script>
    <script src="__JS__/mui.pullToRefresh.material.js"></script>
    <script type="text/javascript" src="__JS__/new_store.js"></script>
    <script type="text/javascript" src="__JS__/new_store_pullrefresh.js"></script>
        <script>
    function fdd(obj,value){
    if(!$(obj).hasClass("disable")){
        $(obj).data("isMoved", 0);
        // console.log(0)
    }
    $(obj).one("touchmove", function(e) {
        if(!$(obj).hasClass("disable")){
            $(obj).data("isMoved", 1);
            // console.log(1)
        }
    });
    $(obj).one("touchend", function(e) {

        if(!$(obj).hasClass("disable") && $(obj).data("isMoved") == 0){
            window.location.href ="/Wx/Shop/shop?id="+value+"";

        }
    });
}
    </script>

</body>

</html>
